# -*- coding: utf-8 -*-
# @Time    : 2021/10/22 6:55
# @Author  : super

class BookClass(object):

	def __init__(self, book_name, user_name, book_id, book_price, book_press, press_data, collection_data, class_number, book_status):
		'''初始化书'''
		self.book_name = book_name
		self.user_name = user_name
		self.book_id = book_id
		self.book_price = book_price
		self.book_press = book_press
		self.press_data = press_data
		self.collection_data = collection_data
		self.class_number = class_number
		self.book_status = book_status

	def __str__(self):
		return f"这是一个图书类:{self.book_name,self.user_name,self.book_id,self.book_price,self.book_press,self.press_data,self.collection_data,self.class_number,self.book_status}"

if __name__ == '__main__':
    bc = BookClass("西游记", "黄贯中", "01", "19.9", "新华出版社", "2008-10-18", "2021-1-9", "TPS01", True)
    print(BookClass("西游记", "黄贯中", "01", "19.9", "新华出版社", "2008-10-18", "2021-1-9", "TPS01", True))
